﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;

namespace UnsafeCode
{
    class VirtualMemoryPtr : SafeHandle
    {
        public readonly IntPtr AllocatePointer;
        readonly IntPtr ProcessHandle;
        readonly IntPtr MemorySize;
        bool Disposed;


        public VirtualMemoryPtr(int memorySize):base(IntPtr.Zero, true)
        {
            ProcessHandle = VirtualMemoryManager.GetCurrentProcess();
        }




        public override bool IsInvalid
        {
            get { return Disposed; }
        }

        protected override bool ReleaseHandle()
        {
            throw new NotImplementedException();
        }
    }
}
